package com.weigang.config.controller;

import com.weigang.config.test.Hello;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloController {

    @Resource
    Hello hello;

    @GetMapping("sayHello")
    public String sayHello() {
        return hello.sayHello("-------->");
    }
}
